.ranking-container {
    background: linear-gradient(200deg, var(--bg-color-six), var(--bg-color-five));
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;

    .ranking-title {
        color: var(--font-eight);
        font-size: 16px;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .ranking-list {
        list-style-type: none;
        padding: 0;

        li {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 5px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            color: var(--font-eight);
            border-radius: 3px;

            &:last-child {
                border-bottom: none;
            }

            .name {
                flex: 1;
                text-align: left;
                padding: 0 20px;
                font-size: 12px;

                a {
                    text-decoration: none;
                    color: inherit;
                }
            }

            .rank,
            .score {
                font-size: 12px;
                font-weight: bold;

                &.rank {
                    flex: 0 0 min(10%, 50px);
                    text-align: center;
                }

                &.score {
                    flex: 0 0 min(10%, 50px);
                    text-align: right;
                    padding-right: 5px;
                }
            }

            &:hover {
                background: var(--bg-color-three);
                color: #ffffff;
                cursor: pointer;
            }
        }
    }
}